package com.jm.bishe.entity;

import java.io.Serializable;

public class Result implements Serializable {

    public Integer code;
    public String msg;
    public Object data;

    public Result(int code,String msg) {
        this.code = code;
        this.msg = msg;
        this.data = null;
    }

    public Result(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public static Result success(String msg,Object data){
        return new Result(2000,msg,data);
    }

    public static Result falure(int code, String msg, Object data){
        return new Result(code,msg,data);
    }

}
